import request from '@/utils/request'

//获取企业信息
export function getEnterpriseList(data) {
  return request({
    url: '/park/enterprise/queryEnterprise',
    method: 'POST',
    data: data
  })
}
 
// 查询对应的类型费用
export function getLeasePriceTypeId(id) {
  return request({
    url: '/park/lease/queryLeasePriceTypeId?id='+id,
    method: 'get'
  })
}


//小程序获取租赁信息
export function getLeaseWx(data) {
  return request({
    url: '/park/parkWx/queryLeaseWx',
    method: 'POST',    
    data: data
  })
}

// http://192.168.6.145:9527/park/lease/getGenerateBill
export function getGenerateBill(id) {
  return request({
    url: '/park/lease/getGenerateBill?id='+id,
    method: 'get'
  })
}

//小程序获取租赁信息
export function saveMeterReading(s1,s2,s3) {
  // data.leaseId,data.dus,data.types
  return request({
    url: '/park/lease/saveMeterReading?leaseId='+s1+'&dus='+s2+'&types='+s3,
    method: 'get'    
  })
}

// 上传图片 http://182.140.221.194:9527/userSystem/resource/saveOrModify?path=car
export function saveOrModify(s1,s2,s3) {
  // data.leaseId,data.dus,data.types
  return request({
    url: '/userSystem/resource/saveOrModify?path=car',
    method: 'get'    
  })
}


